import type { RouteConfigProps } from '@/types/common'
import Home from '@/views/home/Index.vue'

const routes: RouteConfigProps[] = [
  {
    path: '/login',
    name: 'login',
    component: () => import('../../views/Login.vue'),
    meta: {
      noLogin: true
    }
  },
  {
    path: '/',
    name: 'home',
    component: Home,
    meta: {
      noLogin: true,
      keepAlive: true,
      backgroundColor: '#f4f6f8'
    }
  },
  {
    path: '/demo',
    name: 'demo',
    component: () => import('../../views/demo/Index.vue'),
    meta: {
      noLogin: true,
      keepAlive: true
    }
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import('../../views/mine/Index.vue'),
    meta: {
      keepAlive: true
    }
  }
]

export default routes
